collectd: Add `write_prometheus` uci config
authorXiao Yu <[email protected]>
Wed, 21 May 2025 23:48:44 +0000 (23:48 +0000)
committerHannu Nyman <[email protected]>
Tue, 3 Jun 2025 05:21:04 +0000 (08:21 +0300)
Included with default options used by collectd

Signed-off-by: Xiao Yu <[email protected]>
utils/collectd/files/collectd.uci
utils/collectd/files/usr/share/collectd/plugin/write_prometheus.json [new file with mode: 0644]

index 3b2088a831277e27511850fd3b1b92ddbc6d4498..b7db1a2f17bd6b88e586924c7d0399598208478d 100644 (file)
@@ -230,3 +230,9 @@ config globals 'globals'
 #      option blocktype 'Subscribe'
 #      option Host 'localhost'
 #      option Topic 'collectd/#'
+
+#config plugin 'write_prometheus'
+#      option enable '0'
+#      option Host '0.0.0.0'
+#      option Port '9103'
+#      option StalenessDelta '300'
diff --git a/utils/collectd/files/usr/share/collectd/plugin/write_prometheus.json b/utils/collectd/files/usr/share/collectd/plugin/write_prometheus.json
new file mode 100644 (file)
index 0000000..719a8db
--- /dev/null
@@ -0,0 +1,7 @@
+{
+       "string": [
+               "Host",
+               "Port",
+               "StalenessDelta"
+       ]
+}